package ma.cdm.compteRendu.bo;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


/**
 * DetailPointId entity. @author Limouri Anouar
 */
@Embeddable

public class DetailPointId  implements java.io.Serializable {


    // Fields    

     private Long idcompterendu;
     private Long idpoint;
     private String responsable;
     private Date delairealisation;
     private String presentationdecisions;
     private String suivi;


    // Constructors

    /** default constructor */
    public DetailPointId() {
    }

    
    /** full constructor */
    public DetailPointId(Long idcompterendu, Long idpoint, String responsable, Date delairealisation, String presentationdecisions, String suivi) {
        this.idcompterendu = idcompterendu;
        this.idpoint = idpoint;
        this.responsable = responsable;
        this.delairealisation = delairealisation;
        this.presentationdecisions = presentationdecisions;
        this.suivi = suivi;
    }

   
    // Property accessors

    @Column(name="IDCOMPTERENDU")

    public Long getIdcompterendu() {
        return this.idcompterendu;
    }
    
    public void setIdcompterendu(Long idcompterendu) {
        this.idcompterendu = idcompterendu;
    }

    @Column(name="IDPOINT")

    public Long getIdpoint() {
        return this.idpoint;
    }
    
    public void setIdpoint(Long idpoint) {
        this.idpoint = idpoint;
    }

    @Column(name="RESPONSABLE", length=10)

    public String getResponsable() {
        return this.responsable;
    }
    
    public void setResponsable(String responsable) {
        this.responsable = responsable;
    }
@Temporal(TemporalType.DATE)
    @Column(name="DELAIREALISATION", length=10)

    public Date getDelairealisation() {
        return this.delairealisation;
    }
    
    public void setDelairealisation(Date delairealisation) {
        this.delairealisation = delairealisation;
    }

    @Column(name="PRESENTATIONDECISIONS", length=1000)

    public String getPresentationdecisions() {
        return this.presentationdecisions;
    }
    
    public void setPresentationdecisions(String presentationdecisions) {
        this.presentationdecisions = presentationdecisions;
    }

    @Column(name="SUIVI", length=1000)

    public String getSuivi() {
        return this.suivi;
    }
    
    public void setSuivi(String suivi) {
        this.suivi = suivi;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof DetailPointId) ) return false;
		 DetailPointId castOther = ( DetailPointId ) other; 
         
		 return ( (this.getIdcompterendu()==castOther.getIdcompterendu()) || ( this.getIdcompterendu()!=null && castOther.getIdcompterendu()!=null && this.getIdcompterendu().equals(castOther.getIdcompterendu()) ) )
 && ( (this.getIdpoint()==castOther.getIdpoint()) || ( this.getIdpoint()!=null && castOther.getIdpoint()!=null && this.getIdpoint().equals(castOther.getIdpoint()) ) )
 && ( (this.getResponsable()==castOther.getResponsable()) || ( this.getResponsable()!=null && castOther.getResponsable()!=null && this.getResponsable().equals(castOther.getResponsable()) ) )
 && ( (this.getDelairealisation()==castOther.getDelairealisation()) || ( this.getDelairealisation()!=null && castOther.getDelairealisation()!=null && this.getDelairealisation().equals(castOther.getDelairealisation()) ) )
 && ( (this.getPresentationdecisions()==castOther.getPresentationdecisions()) || ( this.getPresentationdecisions()!=null && castOther.getPresentationdecisions()!=null && this.getPresentationdecisions().equals(castOther.getPresentationdecisions()) ) )
 && ( (this.getSuivi()==castOther.getSuivi()) || ( this.getSuivi()!=null && castOther.getSuivi()!=null && this.getSuivi().equals(castOther.getSuivi()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getIdcompterendu() == null ? 0 : this.getIdcompterendu().hashCode() );
         result = 37 * result + ( getIdpoint() == null ? 0 : this.getIdpoint().hashCode() );
         result = 37 * result + ( getResponsable() == null ? 0 : this.getResponsable().hashCode() );
         result = 37 * result + ( getDelairealisation() == null ? 0 : this.getDelairealisation().hashCode() );
         result = 37 * result + ( getPresentationdecisions() == null ? 0 : this.getPresentationdecisions().hashCode() );
         result = 37 * result + ( getSuivi() == null ? 0 : this.getSuivi().hashCode() );
         return result;
   }   





}